From: Lars Magne Ingebrigtsen Date: Mon, 2 May 2011 02:33:11 +0000 (+0200) Subject: Decode &_ => SPC in the reply. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~3972 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=e24e1c181d31c71837e3fe14de7c6431655b617a;p=emacs.git Decode &_ => SPC in the reply. --- diff --git a/lisp/server.el b/lisp/server.el index ab7dd409736..c421ee09812 100644 --- a/lisp/server.el +++ b/lisp/server.el @@ -1487,8 +1487,8 @@ only these files will be asked to be saved." (defun server-eval-at (server form) "Eval FORM on Emacs Server SERVER." (let ((auth-file (expand-file-name server server-auth-dir)) - ;;(coding-system-for-read 'binary) - ;;(coding-system-for-write 'binary) + (coding-system-for-read 'binary) + (coding-system-for-write 'binary) address port secret process) (unless (file-exists-p auth-file) (error "No such server definition: %s" auth-file)) @@ -1516,8 +1516,12 @@ only these files will be asked to be saved." (goto-char (point-min)) ;; If the result is nil, there's nothing in the buffer. If the ;; result is non-nil, it's after "-print ". - (and (search-forward "\n-print" nil t) - (read (current-buffer)))))) + (when (search-forward "\n-print" nil t) + (let ((start (point))) + (while (search-forward "&_" nil t) + (replace-match " " t t)) + (goto-char start) + (read (current-buffer))))))) (provide 'server)